#ifndef MESSAGEEDITAREA_H
#define MESSAGEEDITAREA_H

#include <QLabel>
#include <QPlainTextEdit>
#include <QPushButton>
#include <QScrollBar>
#include <QVBoxLayout>
#include <QWidget>

#include "historymessagewidget.h"

class MessageEditArea : public QWidget
{
    Q_OBJECT
  public:
    explicit MessageEditArea(QWidget *parent = nullptr);

    void initSignalSlot();

    void sendTextMessage();

    void addSelfMessage(model::MessageType messageType, const QByteArray &content, const QString &extraInfo);

    void addOtherMessage(const model::Message &message);

  private:
    QPushButton *_sendImageBtn;
    QPushButton *_sendFileBtn;
    QPushButton *_sendSpeechBtn;
    QPushButton *_showHistoryBtn;
    QPlainTextEdit *_textEdit;
    QLabel *_tipLabel;
    QPushButton *_sendTextBtn;
  signals:
};

#endif // MESSAGEEDITAREA_H
